lcBlockAddDimAli LiteCAD API

Adds a new aligned dimension object into a block.

 HANDLE lcBlockAddDimAli (
   HANDLE hBlock,
   double X0,
   double Y0,
   double X1,
   double Y1,
   double Xt,
   double Yt,
   LPCWSTR szText
 );

Parameters
hBlock
  Handle to a block.
X0 Y0
  First definition point.
X1 Y1
  Second definition point.
Xt Yt
  Text and dimension line position.
szText
  User-supplied dimension text.
If no text is to appear, supply "." .
If only the default text is to appear, supply an empty string "".
The default text is represented as "<>" within the supplied text.

Return Value

  Handle to created aligned dimension object or NULL if the function fails.

See Also

  Dimension style,   Code sample